package com.guyuan.live_meeting.bean;

public class UmengPushResponse {

    /**
     * ret : SUCCESS/FAIL
     * data : {"msg_id":"xx","task_id":"xx","error_code":"xx","error_msg":"xx"}
     */

    private String ret;
    private Data data;

    public String getRet() {
        return ret;
    }

    public void setRet(String ret) {
        this.ret = ret;
    }

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "UmengPushResponse{" +
                "ret='" + ret + '\'' +
                ", data=" + data +
                '}';
    }

    public static class Data {
        /**
         * msg_id : xx
         * task_id : xx
         * error_code : xx
         * error_msg : xx
         */

        // 当"ret"为"SUCCESS"时，包含如下参数:
        // 单播类消息(type为unicast、listcast、customizedcast且不带file_id)返回：
        private String msg_id;
        // 任务类消息(type为broadcast、groupcast、filecast、customizedcast且file_id不为空)返回：
        private String task_id;
        // 当"ret"为"FAIL"时,包含如下参数:
        private int error_code;
        private String error_msg;

        public String getMsg_id() {
            return msg_id;
        }

        public void setMsg_id(String msg_id) {
            this.msg_id = msg_id;
        }

        public String getTask_id() {
            return task_id;
        }

        public void setTask_id(String task_id) {
            this.task_id = task_id;
        }

        public int getError_code() {
            return error_code;
        }

        public void setError_code(int error_code) {
            this.error_code = error_code;
        }

        public String getError_msg() {
            return error_msg;
        }

        public void setError_msg(String error_msg) {
            this.error_msg = error_msg;
        }

        @Override
        public String toString() {
            return "Data{" +
                    "msg_id='" + msg_id + '\'' +
                    ", task_id='" + task_id + '\'' +
                    ", error_code='" + error_code + '\'' +
                    ", error_msg='" + error_msg + '\'' +
                    '}';
        }
    }
}
